package com.wang.mylog;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class Mybatislog {
    private Logger log = LogManager.getLogger();

    @RequestMapping("/test02")
    public String test01(){
        log.info("==info==");
        log.warn("==warn==");
        log.error("==error==");
        log.debug("==debug==");
        log.trace("==trace==");
        return "测试一2下";
    }
}
